package freaks.terah.model;

import java.util.ArrayList;

public class Tech extends Ressource {
	
	int origin = 0;
	
	public Tech(String aName, String aDescription, String aStringId, int anId, String aCategory, int[] aCost, int[] anOutput, int[] anUpkeep, ArrayList<String> aPre, int anOrigin, int anEditCost)
	{
		super(aName, aDescription, aStringId, anId, aCategory, aCost, anOutput, anUpkeep, aPre, anEditCost);
		
		origin = anOrigin;
	}
	
	public int getOrigin()
	{
		return origin;
	}

	@Override
	public Ressource copy() {
		return new Tech(getName(), getDescription(), getStringId(), getId(), getCategory(), getCost(), getOutput(), getUpkeep(), getPre(), origin, getEditCost());
	}
}
